package cn.wbu.zyh.vo;

import cn.wbu.zyh.entity.Annotation;
import cn.wbu.zyh.entity.ArticleTag;
import cn.wbu.zyh.entity.Tag;
import cn.wbu.zyh.entity.TeamArticle;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ArticleVO implements Serializable {

    private long id;
    private String title;
    private String body;
    private String createdUser;
    private Integer isPublished;
    private boolean isFavorite;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;
    //笔记关联的标签
    private List<ArticleTag> articleTags;
    private List<Annotation> annotations;
    private List<TeamArticle> teamArticle;
    //private Integer copies;
}
